package com.wy17113.controller.utils;

import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class DBConfigHelper {
	private static String driverClass;
	private static String url;
	private static String userName;
	private static String password;

	static {
		try {
			/* 28 */InputStream is = DBConfigHelper.class.getClassLoader()
					.getResourceAsStream("jdbc.properties");
			/* 29 */Properties ps = new Properties();
			/* 30 */ps.load(is);
			/* 31 */driverClass = ps.getProperty("driverClass");
			/* 32 */url = ps.getProperty("url");
			/* 33 */userName = ps.getProperty("username");
			/* 34 */password = ps.getProperty("password");
		} catch (FileNotFoundException e) {
			/* 36 */e.printStackTrace();
		} catch (IOException e) {
			/* 38 */e.printStackTrace();
		}
	}

	public static String getDriverClass() {
		/* 43 */return driverClass;
	}

	public static void setDriverClass(String driverClass) {
		/* 47 */driverClass = driverClass;
	}

	public static String getUrl() {
		/* 51 */return url;
	}

	public static void setUrl(String url) {
		/* 55 */url = url;
	}

	public static String getUserName() {
		/* 59 */return userName;
	}

	public static void setUserName(String userName) {
		/* 63 */userName = userName;
	}

	public static String getPassword() {
		/* 67 */return password;
	}

	public static void setPassword(String password) {
		/* 71 */password = password;
	}
}